// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.documentCirculation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.documentCirculation.entity.DataTaskMapping;
import com.fowo.api.documentCirculation.model.DataTaskMappingItemVo;
import com.fowo.api.documentCirculation.model.DataTaskMappingSearchParamPo;
import com.fowo.api.documentCirculation.model.DataTaskMappingVo;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 数据事务映射表 Mapper
 * @author yl_ls
 */
@Mapper
public interface DataTaskMappingMapper extends BaseMapper<DataTaskMapping> {
  Page<DataTaskMappingItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") DataTaskMappingSearchParamPo search
  );
  List<DataTaskMappingItemVo> search(
    @Param("search") DataTaskMappingSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") DataTaskMappingSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") DataTaskMappingSearchParamPo search);
  Long getIdByFieldDescription(
    @Param("fieldDescription") String fieldDescription
  );

  List<Long> getIdsByFieldDescription(@Param("list") List<String> list);

  String getFieldDescriptionById(@Param("id") Long id);

  List<String> getFieldDescriptionByIds(@Param("ids") List<Long> ids);
  DataTaskMappingVo selectVoById(@Param("id") Long id);
}
